/*
 * @ProjectName: flutter_common
 * @Package:
 * @ClassName: language_text.dart
 * @Description: 保存公共的字体语言的text
 * @User: Page.Su
 * @Date: 2020/8/24
 * @Time: 11:35
 * @UpdateDate: 2020/8/24 11:35
 */

import 'package:flutter/material.dart';
import 'package:flutter_su/enum/language_type.dart';

import 'app_color.dart';
import 'fun.dart';


class LanguageText {
  // 请输入推荐码
  static final Widget recommendedCodeText = SFunCommon.text(
    TextStyle(
      fontSize: SFunCommon.fontSize(30),
      color: AppColor.MAIN_COLOR_CYAN,
      decoration: TextDecoration.underline,
    ),
    contentType: ContentType.projectOwner,
    key: "recommendCode",
  );

  // 注册
  static final Widget registerText = SFunCommon.text(
    TextStyle(
      fontWeight: FontWeight.bold,
      fontSize: SFunCommon.fontSize(30),
    ),
    contentType: ContentType.common,
    key: "register",
  );

  // 登录
  static final Widget loginText = SFunCommon.text(
    SFunCommon.fontStyle(
      Colors.white,
      fontSize: 30,
      fontWeight: FontWeight.bold,
    ),
    contentType: ContentType.common,
    key: "login",
  );

  // 请输入你的注册邮箱
  static final Widget inputEmail = SFunCommon.text(
    SFunCommon.fontStyle(
      Colors.white,
      fontSize: 30,
    ),
    contentType: ContentType.loginRegister,
    key: "inputEmail",
  );

  // 输入邮箱未注册的提示文字
  static final Widget emailNoRegister = SFunCommon.text(
    SFunCommon.fontStyle(
      AppColor.MAIN_COLOR_CYAN,
      fontSize: 24,
    ),
    contentType: ContentType.loginRegister,
    key: "emailNoRegister",
  );

  // 登录输入邮箱后下一步
  static final Widget emailAndNext = SFunCommon.text(
    SFunCommon.fontStyle(
      AppColor.MAIN_COLOR_BLUE,
      fontSize: 30,
    ),
    contentType: ContentType.loginRegister,
    key: "next",
  );

  // 请输入你的密码
  static final Widget inputPassword = SFunCommon.text(
    SFunCommon.fontStyle(
      Colors.white,
      fontSize: 30,
    ),
    contentType: ContentType.loginRegister,
    key: "inputPassword",
  );

  // 输入邮箱未注册的提示文字
  static final Widget passwordError = SFunCommon.text(
    SFunCommon.fontStyle(
      AppColor.MAIN_COLOR_CYAN,
      fontSize: 24,
    ),
    contentType: ContentType.loginRegister,
    key: "passwordError",
  );

  // 进入BitBro
  static final Widget goToBitBro = SFunCommon.text(
    SFunCommon.fontStyle(
      AppColor.MAIN_COLOR_BLUE,
      fontSize: 30,
    ),
    contentType: ContentType.loginRegister,
    key: "goToBitBro",
  );

  // 请输入邮箱
  static final Widget inputRegisterEmail = SFunCommon.text(
    SFunCommon.fontStyle(
      Colors.white,
      fontSize: 30,
    ),
    contentType: ContentType.loginRegister,
    key: "inputRegisterEmail",
  );
  // 请输入密码
  static final Widget inputRegisterPassword = SFunCommon.text(
    SFunCommon.fontStyle(
      Colors.white,
      fontSize: 30,
    ),
    contentType: ContentType.loginRegister,
    key: "inputRegisterPassword",
  );
  // 再次确定密码
  static final Widget inputRegisterPasswordSecond = SFunCommon.text(
    SFunCommon.fontStyle(
      Colors.white,
      fontSize: 30,
    ),
    contentType: ContentType.loginRegister,
    key: "inputRegisterPasswordSecond",
  );
  // 两次密码不正确
  static final Widget inputRegisterPasswordError = SFunCommon.text(
    SFunCommon.fontStyle(
      AppColor.MAIN_COLOR_CYAN,
      fontSize: 30,
    ),
    contentType: ContentType.loginRegister,
    key: "inputRegisterPasswordError",
  );

  // 忘记密码
  static final Widget forgetPassword = SFunCommon.text(
    TextStyle(
      color: AppColor.MAIN_COLOR_CYAN,
      fontSize: SFunCommon.fontSize(30),
      decoration: TextDecoration.underline,
    ),
    contentType: ContentType.loginRegister,
    key: "forgetPassword",
  );

  // 忘记密码
  static final Widget forgetPasswordByAppBar = SFunCommon.text(
    TextStyle(
      color: Colors.white,
      fontSize: SFunCommon.fontSize(30),
      fontWeight: FontWeight.bold,
    ),
    contentType: ContentType.loginRegister,
    key: "forgetPassword",
  );

  // 请输入接受验证码的邮箱
  static final Widget inputEmailToSendCode = SFunCommon.text(
    TextStyle(
      color: Colors.white,
      fontSize: SFunCommon.fontSize(36),
      fontWeight: FontWeight.w400,
    ),
    contentType: ContentType.loginRegister,
    key: "inputEmailToSendCode",
  );

  // 请输入验证码
  static final Widget inputEmailCode = SFunCommon.text(
    TextStyle(
      color: Colors.white,
      fontSize: SFunCommon.fontSize(36),
      fontWeight: FontWeight.w400,
    ),
    contentType: ContentType.loginRegister,
    key: "inputEmailCode",
  );

  // 请输入新密码（不能少于8位）
  static final Widget inputNewPassword = SFunCommon.text(
    TextStyle(
      color: Colors.white,
      fontSize: SFunCommon.fontSize(36),
      fontWeight: FontWeight.w400,
    ),
    contentType: ContentType.loginRegister,
    key: "inputNewPassword",
  );

  // 请确认新密码（不能少于8位）
  static final Widget inputSecondNewPassword = SFunCommon.text(
    TextStyle(
      color: Colors.white,
      fontSize: SFunCommon.fontSize(36),
      fontWeight: FontWeight.w400,
    ),
    contentType: ContentType.loginRegister,
    key: "inputSecondNewPassword",
  );

  // 发送验证码
  static final Widget getEmailCode = SFunCommon.text(
    TextStyle(
      color: AppColor.MAIN_COLOR_BLUE,
      fontSize: SFunCommon.fontSize(30),
      fontWeight: FontWeight.bold,
    ),
    contentType: ContentType.loginRegister,
    key: "getEmailCode",
  );

  // 切换语言
  static final Widget setLanguage = SFunCommon.text(
    TextStyle(
      color: AppColor.MAIN_COLOR_BLUE,
      fontSize: SFunCommon.fontSize(19),
    ),
    contentType: ContentType.loginRegister,
    key: "language",
  );

  // 国家列表
  static final Widget countryList = SFunCommon.text(
    TextStyle(
      color: Colors.white,
      fontSize: SFunCommon.fontSize(30),
      fontWeight: FontWeight.bold,
    ),
    contentType: ContentType.loginRegister,
    key: "countryList",
  );

  // 重试
  static final Widget retry = SFunCommon.text(
    SFunCommon.fontStyle(
      AppColor.MAIN_COLOR_BLUE,
      fontSize: 30,
    ),
    contentType: ContentType.loginRegister,
    key: "retry",
  );

  // 审核页面获取
  static Widget auditText(String key) {
    return SFunCommon.text(SFunCommon.fontStyle(
      Colors.white,
      fontSize: 30,
    ), contentType: ContentType.audit, key: key);
  }
}
